import java.util.LinkedList;

/**
 * @author xiaolong
 * @create 2020-09-07 8:37
 * @description
 */
public class Solution {

    public static void main(String[] args) {
        LinkedList<Integer> linkedList = new LinkedList<>();
        linkedList.add(1);
        linkedList.add(2);
        linkedList.add(3);
        System.out.println(linkedList.pop());
    }
}
